package com.hhx.androidrxmvp.base.mvp;

import com.trello.rxlifecycle2.LifecycleTransformer;

/**
 * Created by Administrator on 2019/3/16.
 */

public interface BaseContract {

    interface BasePresenter<T extends BaseView> {
        void attachView(T view);

        void detachView();
    }

    interface BaseView {

        void showLoading();

        void hideLoading();

        void showSuccess();

        void showFailed();

        void showRetry();

        void showMessage(String message);

        <T> LifecycleTransformer<T> bindToLife();

    }
}
